// API 配置
export const API_BASE_URL = 'https://wufeng98.cn/cookApi'
// export const API_BASE_URL = 'http://localhost:3001'

// API 路径配置
export const API_ROUTES = {
  // 用户相关
  LOGIN: '/users/login',
  REGISTER: '/users/register',
  JOIN_FAMILY: (userId: string) => `/users/${userId}/join-family`,
  UPDATE_USER: (userId: string) => `/users/${userId}`,
  
  // 家庭相关
  GET_FAMILY: (familyId: string) => `/families/${familyId}`,
  CREATE_FAMILY: '/families',
  UPDATE_FAMILY: (familyId: string) => `/families/${familyId}`,
  
  // 菜谱相关
  UPLOAD_IMAGE: '/recipes/upload-image',
  CREATE_RECIPE: '/recipes',
  UPDATE_RECIPE: (recipeId: string) => `/recipes/${recipeId}`,
  GET_RECIPE: (recipeId: string) => `/recipes/${recipeId}`,
  GET_ALL_RECIPES: '/recipes/all',
  GET_DAILY_RECOMMENDATION: '/recipes/daily-recommendation',
  GET_WEEKLY_PLAN: '/recipes/weekly-plan'
}
